﻿namespace FilteredPageReference
{
    using System;
    using EPiServer.Core;
    using EPiServer.PlugIn;
    using EPiServer.SpecializedProperties;

    /// <summary>
    /// Filtered link collection property
    /// </summary>
    [Serializable]
    [PageDefinitionTypePlugIn(DisplayName = "FilteredLinkCollectionProperty", Description = "Allows you to limit the types of pages that can be picked")]
    public class PropertyFilteredLinkCollection : PropertyLinkCollection
    {
        /// <summary>
        /// Creates the property control.
        /// </summary>
        /// <returns>IPropertyControl class</returns>
        public override IPropertyControl CreatePropertyControl()
        {
            return new PropertyFilteredLinkCollectionControl();
        }

    }
}
